<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html id="html" xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-cn" lang="zh-cn">
<head>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<meta name="author" content="duoduo123.com" />
<title><?=WEBDESC?></title>
<meta name="keywords" content="<?=KEYWORD?>">
<meta name="Description" content="<?=DESCRIPTION?>">
<link rel="stylesheet" rev="stylesheet" href="template/<?=MOBAN?>/css/index.css" type="text/css" media="screen">
<link rel="stylesheet" rev="stylesheet" href="template/<?=MOBAN?>/css/public.css" type="text/css" media="screen">
<LINK rel=stylesheet type=text/css href="template/<?=MOBAN?>/css/common.css">
<script type="text/javascript" src="template/<?=MOBAN?>/js/jquery-1.3.2.min.js"></script>
<SCRIPT type="text/javascript" src="template/<?=MOBAN?>/js/base64.js"></SCRIPT>
<SCRIPT type="text/javascript" src="template/<?=MOBAN?>/js/function.js"></SCRIPT>
<SCRIPT type="text/javascript" src="template/<?=MOBAN?>/js/taobao.js"></SCRIPT>
<style type="text/css"> 
.container, .container *{margin:0; padding:0;}
.container{width:500px; height:245px; overflow:hidden;position:relative;}
.slider{position:absolute;}
.slider li{ list-style:none;display:inline;}
.slider img{ width:500px; height:245px; display:block;}
.slider2{width:5000px;}
.slider2 li{float:left;}
.num{ position:absolute; right:5px; bottom:5px;}
.num li{
	float: left;
	color: #FF7300;
	text-align: center;
	line-height: 16px;
	width: 16px;
	height: 16px;
	font-family: Arial;
	font-size: 12px;
	cursor: pointer;
	overflow: hidden;
	margin: 3px 1px;
	border: 1px solid #FF7300;
	background-color: #fff;
}
.num li.on{
	color: #fff;
	line-height: 21px;
	width: 21px;
	height: 21px;
	font-size: 16px;
	margin: 0 1px;
	border: 0;
	background-color: #FF7300;
	font-weight: bold;
}
</style>
<script language="javascript" >
$(function(){
	 var len2  = $("#idNum2 > li").length;
	 var index2 = 0;
	 $("#idNum2 li").mouseover(function(){
		index2  =   $("#idNum2 li").index(this);
		showImg2(index2);
	});	

	 $('#idTransformView2').hover(function(){
			  if(MyTime2){
				 clearInterval(MyTime2);
			  }
	 },function(){
			  MyTime2 = setInterval(function(){
				showImg2(index2)
				index2++;
				if(index2==len2){index2=0;}
			  } , 4000);
	 });
	 //自动开始
	 var MyTime2 = setInterval(function(){
		showImg2(index2)
		index2++;
		if(index2==len2){index2=0;}
	 } , 4000);
})
function showImg2(i){
		$("#idSlider2").stop(true,false).animate({left : -500*i},1000);
		 $("#idNum2 li")
			.eq(i).addClass("on")
			.siblings().removeClass("on");
}
</script>
<script language="javascript">
$.ajaxSetup ({
    cache: false //关闭AJAX相应的缓存
});
$(function(){
    $('.checkLogin').click(function(){
		url=$(this).attr('href');
		var ddusername='<?=$_SESSION["duoduouser"]?>';
		var img=$(this).parent('p').parent('li').find('img').attr('src');
		var price=$(this).parent('p').parent('li').find('.hot_goods_list_num').find('b').html();
		var fx=$(this).parent('p').parent('li').attr('fanli');
		$('#layer_goods').show();
		$('#jump_pic').attr('src',img);
		$('#jump_href').attr('href',url);
		$('.jump_price').text(price);
		$('#jump_back').text(fx);
	    if(ddusername!=''){
			window.open(url);
		}
		else{
		    $('.jumpbox').show();
		}
	return false;
	});
	
	$('#jumpclose').click(function(){
	    $('.jumpbox').hide();
	});
});
</script>
</head>
<body>
<?php
include("header.tpl.php");
?>
<?php
include("nav.tpl.php");
?>
<div class="index">  
<?php 
if(AD(1)){?>
<div id="ad1"><?=AD(1)?></div>
<?php }?>
	<div class="mall"> 
<!-- 全部返现商家 Start -->
<div class="menu templateNeedDelete">
<H2><SPAN class=exp>全部返现商家</SPAN></H2>
<UL>
  <?php
  while ($row1 = mysql_fetch_array($rs_malltype)) {?>
  <LI onmouseover="this.className='on';" onmouseout="this.className='';">
    <H3><EM><?=$row1['typename']?></EM></H3>
	<P><?php 
	$i=0;
	foreach ($allmalllist as $row2){
		if($row2["catid"]==$row1["typecode"]&&$i<2){
			echo "<a href=\"mall".$url_head_id.$row2["id"].$url_end."\">".$row2["name"]."</a>&nbsp;&nbsp;";
			$i++;
		}
	}
	?></P>
    <DIV class=menu_show onmouseover="this.parentNode.className='on';" onmouseout="this.parentNode.className='';">
      <CITE></CITE>
      <DL>
        <DT><STRONG><?=$row1['typename']?>所有商家：</STRONG></DT>
        <?php 
		$i=0;
		foreach ($allmalllist as $row3){
			if($row3["catid"]==$row1["typecode"]&&$i<20){
				echo "<DD><a href=\"mall".$url_head_id.$row3['id'].$url_end."\" target=\"_blank\">".$row3['name']."（最高返".$row3['fan']."）</A></DD>";
				$i++;
			}
		}
		?>
        <div style="clear:both"></div>
      </DL>
    </DIV>
  </LI>
  <?php }?>  
</UL>
</div>
		<!-- 全部返现商家 End -->		
		<!-- 返现服务专线 Start -->
<div class="frame service" style="clear:both">
			<h2>返现客服</h2>
			<p class="exp">返现过程遇到问题请联系</p>
			<p class="qq" style="height:45px;"><a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=<?=QQ?>&site=qq&menu=yes"><img border="0" src="http://wpa.qq.com/pa?p=2:<?=QQ?>:46" alt="点击这里给我发消息" title="点击这里给我发消息"></a>
            			<a target="_blank" href="http://amos.im.alisoft.com/msg.aw?v=2&uid=<?=MYUSERNICK?>&site=cntaobao&s=1&charset=utf-8" ><img border="0" src="http://amos.im.alisoft.com/online.aw?v=2&uid=<?=urlencode(MYUSERNICK)?>&site=cntaobao&s=1&charset=utf-8" alt="点击这里给我发消息" /></a></p>
		</div>
		<!-- 返现服务专线 End --
		>
 		<!-- 广告位2 Start -->
		<div class="frame limit_time" style="border:0px;">
			<div id="ad2"><?=AD(2)?></div>
		</div>
		<!-- 广告位2 End -->
		
		<!-- 常见问题 Start -->
		<div class="frame faq">
			<h2><span>常见问题</span></h2>
			<ul><?php while ($row = mysql_fetch_array($rs_article)) {?>
				<li class="template_module template_copy"><a href="read<?=$url_head_id?><?=$row['id']?><?=$url_end?>" target="_blank" class="template_mod" etype="innerHTML&href"><?=$row['title']?></a></li>
				<?php }?>
			</ul>
		</div>
		<!-- 常见问题 End --> 
	</div>
	
	<!-- main content Start -->
	<div class="main">
		<!-- 幻灯片 Start -->
			<div class="container" id="idTransformView2">
			  <ul class="slider slider2" id="idSlider2">
              <?php
			  foreach($slides_url as $k=>$v){?>
				<li><a href="<?=$slides_url[$k]?>" target="_blank" title="<?=$slides_title[$k]?>"><img src="upload/<?=$slides_pic[$k]?>" alt="<?=$slides_title[$k]?>"/></a></li>
			  <?php }?>
              </ul>
			  <ul class="num" id="idNum2">
              <?php
			  foreach($slides_url as $k=>$v){?>
				<li><?=$k+1?></li>
			  <?php }?>
			  </ul>
			</div>
		<!-- 幻灯片 End -->

		<!-- 推荐商家 Start -->
		<div class="mall_commend"> 
			<h2><span>推荐商家</span></h2>
			<div class="mall_content">
				<ul class="content_item" id="top_malls">
					<?php while ($row = mysql_fetch_array($rs_mall)) {?>
					<li class="template_module">
                    <div onMouseOver="this.className='tbdplist4'" onMouseOut="this.className='tbdplist3'" class="tbdplist3">
						<p class="picture"><a href="mall<?=$url_head_id?><?=$row['id']?><?=$url_end?>" target="_blank"><img src="upload/<?=$row['logo']?>" alt="<?=$row['name']?>" class="template_mod" width="113px" height="50px"></a></p>
						<p class="name template_mod" etype="mallid" mallid="10000">最高返<span><?=$row['fan']?></span></p></div>
					</li>
					<?php }?>
				</ul>
				<ul class="content_text" id="malls">
				<?php while ($row = mysql_fetch_array($rs_mall2)) {?>
					<li class="template_module template_copy"><a href="mall<?=$url_head_id?><?=$row['id']?><?=$url_end?>" target="_blank"><?=$row['name']?></a><span class="name template_mod" etype="mallid" mallid="10019" style="color:#999999">(最高返<?=$row['fan']?>)</span></li>
				<?php }?>
				</ul>
 
			</div>
			<p class="more_link template_module"><a href="malllist<?=$end?>" target="_blank" class="template_mod" etype="href&innerHTML">查看全部>></a></p>
		</div>
		<!-- 推荐商家 End -->
 
		<!-- 购物资讯 Start -->
		<div class="vip_sale"> 
			<h2><span class="exp">购物资讯</span></h2>
			<div class="mall_content">
				<ul class="content_item">
					<?php while ($row = mysql_fetch_array($rs_pic_article)) {?>
					<li class="template_module">
						<p class="picture"><a href="read<?=$url_head_id?><?=$row['id']?><?=$url_end?>" target="_blank" class="template_mod" etype="href"><img src="upload/<?=$row['pic']?>" alt="<?=$row['title']?>" class="artpic" etype="src"></a></p>
					</li>
					<?php }?>
				</ul>
				<ul class="content_text" style="">
				<?php while ($row = mysql_fetch_array($rs_new_article)) {?>
					<li style="width:255px; overflow:hidden; line-height:20px; height:20px;"><div style="width:200px; height:20px; line-height:20px;"><a href="read<?=$url_head_id?><?=$row['id']?><?=$url_end?>" target="_blank" class="bluelink" etype="innerHTML&href"><?=$row['title']?></a></div></li>
				<?php }?>
				</ul>
				<ul class="content_text templateNeedNull" id="content" style="display: none;"></ul>
 
			</div>
			<p class="more_link template_module"><a href="article<?=$end?>" target="_blank" class="template_mod" etype="href&innerHTML">查看全部>></a></p>
		</div>
		<!-- 购物资讯 End -->
 
		<!-- 淘宝热卖 Start -->
		<div class="use_fanli"> 
			<h2><span>淘宝热卖</span></h2>
			<div class="mall_content">
				<ul>
				<?php for($i = 0; $i < count($ListHot); $i++) {
				$hottitle=str_replace("'","",$ListHot[$i]["title"]);
				$hottitle=strip_tags($hottitle);
				//简易模式还是详细模式选择不同的链接地址
				if(WEBTYPE=='0'){
					$gourl="class=\"checkLogin\" href=\"view".$url_head_iid.$ListHot[$i]["num_iid"].$url_end."\" target=\"_blank\"";
				}else{
					$gourl="href=\"view".$url_head_iid.$ListHot[$i]["num_iid"].$url_end."\" target=\"_blank\"";
				}
				?>
					<li style="width:119px; border:1px solid #ddd; margin-left:3px;" fanli="<?=ck_fxje($ListHot[$i]["commission"],$_SESSION['dduserlevel'])?>">
						<p class="picture"><a <?=$gourl?>><SCRIPT language=javascript>setPic('<?php echo base64_encode($ListHot[$i]["pic_url"]."_310x310.jpg")?>',100,100,'<?php echo $hottitle ?>');</SCRIPT></a></p>
						<p class="name"><a <?=$gourl?>>淘宝价:<span class="hot_goods_list_num">￥<b><?php echo $ListHot[$i]["price"]; ?></b></span> 元</a></p>
						<p><a <?=$gourl?>>可返现:<span class="hot_goods_list_num"><b><? echo ck_fxje($ListHot[$i]["commission"],$_SESSION['dduserlevel'])?></b></span> 元</a></p>					
					</li>
				<?php } ?>
				</ul>
			</div>
			<p class="more_link template_module"><a href="list<?=$end?>" target="_blank" class="template_mod" etype="href&innerHTML">查看全部>></a></p>
		</div>
		<!-- 淘宝热卖 End -->
 
	</div>
	<!-- main content End -->
 
	<!-- side content Start -->
	<div class="side">
		   
		<!-- 返现引导 Start -->
		<div class="study">
			<div class="dostudy"><?php if($_SESSION["duoduouser"]!=''){?><a href="user/center.php" class="template_mod" etype="innerHTML&href">欢迎回来：<?=$_SESSION["duoduouser"]?></a><?php }else {?><a href="user/register.php" target="_blank" class="template_mod" etype="innerHTML&href">马上注册<?=WEBNICK?>会员</a><?php }?></div>
		</div>
		<!-- 返现引导 End -->
 
		<!-- 返现公告 Start -->
		<div class="frame notice">
			<h2><span>返现公告</span></h2>
			<ul>
			<?php while ($row = mysql_fetch_array($rs_gg)) {?>
				<li><div style="line-height:20px; height:20px; width:180px; overflow:hidden"><a href="read<?=$url_head_id?><?=$row['id']?><?=$url_end?>" target="_blank" class="template_mod" etype="innerHTML&href"><?=$row['title']?></a></div></li>
			<?php }?>
			</ul>
		</div>
		<!-- 返现公告 End -->
 
		
		<!-- 淘宝店铺 Start -->
		<div class="frame post">
			<h2><span>淘宝店铺</span></h2>
			<ul style="width:225px; overflow:hidden">
				<?php
				while($row3 = mysql_fetch_array($rs_shop))
				
				{?>
					<li class="tbdp">
						<div onMouseOver="this.className='tbdplist2'" onMouseOut="this.className='tbdplist1'" class="tbdplist1">
						<div style="float:left; height:70px; width:70px; margin-top:5px; margin-left:5px;"><A href="shop<?=$url_head_nick?><?php echo urlencode($row3['nick']) ?><?=$url_end?>" target="_blank" class="nolink" title="进入<?php echo $row3['nick'] ?>的店铺"><SCRIPT language=javascript>setPic('<?php echo base64_encode("http://logo.taobao.com/shop-logo".$row3['pic_path'])?>',65,65,'<?php echo $row3['title'] ?>');</SCRIPT></a></div>
						<div style="float:left; margin-left:0px; height:70px; width:120px; line-height:20px; overflow:hidden; margin-top:3px;">
							<div style="width:120px; height:22px; line-height:22px; overflow:hidden; text-align:left"><A href="shop<?=$url_head_nick?><?php echo urlencode($row3['nick']) ?><?=$url_end?>" target="_blank" class="nolink" title="进入<?php echo $row3['nick'] ?>的店铺">掌柜：<?=$row3['nick']?></A></div>
							<div style="width:120px; height:22px; line-height:22px; overflow:hidden;text-align:left"><A href="shop<?=$url_head_nick?><?php echo urlencode($row3['nick']) ?><?=$url_end?>" target="_blank" class="nolink" title="进入<?php echo $row3['nick'] ?>的店铺"><?php if($row3["type"]=="B"){echo "<img src=\"template/".MOBAN."/images/shangcheng.png\" alt=\"商城卖家\"  align=\"middle\">"; }else {echo " <img src=\"images/level_".$row3["level"].".gif\" align=\"absmiddle\" />";} ?></A></div>
							<div style="width:120px; height:22px; line-height:22px; overflow:hidden;text-align:left"><A href="shop<?=$url_head_nick?><?php echo urlencode($row3['nick']) ?><?=$url_end?>" target="_blank" class="nolink" title="进入<?php echo $row3['nick'] ?>的店铺">所在地：<?=$row3['city']?></A></div>
						</div>
						</div>
					</li>
				<?php }?>
			</ul>
		</div>
		<!-- 淘宝店铺 End -->
 
 
	</div>
	<!-- side content End -->
</div>
<div class="clear"></div>
<div class="yqlj"> 
	<div class="yqljtitle">友情链接:</div>
	<ul class="yqljlist">
	<?php while ($row = mysql_fetch_array($rs_yqlj)) {?>
		<li><a href="<?=$row['url']?>" target="_blank" title="<?=$row['webname']?>"><?=$row['webname']?></a></li>
	<?php }?>
	</ul>
</div>  
<div class="yqlj" style="margin-top:5px;"> 
	<div class="yqljtitle">合作伙伴:</div>
	<div class="yqljlist">
	<ul>
	<?php while ($row = mysql_fetch_array($rs_hzhb)) {?>
		<li><a href="<?=$row['url']?>" target="_blank" title="<?=$row['webname']?>"><img src="upload/<?=$row['pic']?>" width="95" height="33" border="0"></a></li>
	<?php }?>
	</ul>
	</div>
</div>  
<?php
	include("footer.tpl.php");
?>
</body></html>
